package com.woniuxy.carlife.carlifeorderweb.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
*@ClassName:Order
*@Description:
*@author qk
*@date 2021/4/7 20:09
**/
@Data
  @EqualsAndHashCode(callSuper = false)
    @TableName("t_order")
@ApiModel(value="Order对象", description="")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单编号")
      @TableId(value = "id", type = IdType.ID_WORKER)
    private String id;

    @ApiModelProperty(value = "买家id")
    private Integer bid;

    @ApiModelProperty(value = "买家电话")
    private String tel;

    @ApiModelProperty(value = "卖家id")
    private Integer sid;

    @ApiModelProperty(value = "买家地址")
    private String bAddress;

    @ApiModelProperty(value = "卖家地址")
    private String sAddress;

    @ApiModelProperty(value = "订单状态")
    private Integer oStatus;

    @ApiModelProperty(value = "发货状态")
    private Integer takeGoods;


    @ApiModelProperty(value = "原始支付金额")
    private BigDecimal originalPrice;

    private BigDecimal integral;

    private BigDecimal coupon;

      @ApiModelProperty(value = "折扣后支付金额")
      private BigDecimal finalPrice;

    private BigDecimal freight;

    private BigDecimal payWay;

      @ApiModelProperty(value = "创建时间")
        @TableField(fill = FieldFill.INSERT)
      private Date gmtCreate;

      @ApiModelProperty(value = "更新时间")
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date gmtUpdate;

      @ApiModelProperty(value = "逻辑删除")
      @TableLogic
    private Integer deleted;


}
